package com.example.lark.im.config;

import com.example.lark.common.configuration.properties.LarkSuiteConfigurationProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class LarkSuiteConfig {

    @Bean
    @ConfigurationProperties(prefix = "lark.suite")
    @ConditionalOnClass(LarkSuiteConfigurationProperties.class)
    public LarkSuiteConfigurationProperties larkSuiteConfigurationProperties() {
        return new LarkSuiteConfigurationProperties();
    }

}
